package com.mera.tektronix.csviewer.controllers

import com.mera.tektronix.csviewer.services.*
import grails.converters.JSON

class ProjectController {
	ProjectService projectService
	
    def getList() {
		render projectService.getList(params) as JSON
	}
	
	def getAllList() {
		render projectService.getAllList() as JSON
	}
	
	def getElement() {
		render projectService.getElement(params) as JSON
	}
	
	def addElement() {
		render projectService.addElement(params) as JSON
	}
	
	def updateElement() {
		render projectService.updateElement(params) as JSON
	}
	
	def deleteElement() {
		render projectService.deleteElement(params) as JSON
	}
}
